package com.inews.business.constants;

public enum BatchType {

	NORMAL("1", "普通人员"),
	RETIRE("2", "退休人员");
	
	// 成员变量
	private String id;
	private String name;

	// 构造方法
	private BatchType(String id, String name) {
		this.id = id;
		this.name = name;
	}

	// 普通方法
	public static String getName(String id) {
		for (BatchType c : values()) {
			if (c.getId().equals(id)) {
				return c.name;
			}
		}
		return null;
	}

	// get set 方法
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
